package decorate.formGreenHand;

import decorate.formGreenHand.impl.Shape;

public class Test {

    public static void main(String[] args) {
        Shape circle = new Circle();
        circle.draw();

        ShapeDecorator redCircle = new RedShapeDecorator(new Circle());
        redCircle.draw();

        ShapeDecorator redRectangle = new RedShapeDecorator(new Rectangle());
        redRectangle.draw();

        System.out.println("------------");
        ShapeDecorator shapeDecorator = new ShapeDecorator();
        shapeDecorator.draw();

        System.out.println("------------");
        ShapeDecorator shapeDecorator1 = new ShapeDecorator(new Circle());
        shapeDecorator1.draw();
    }
}
